﻿//------------------------------------------------------------------------------
// ╭─────────────────────────────╮
// │ ╭─╮     ╭─╮              TM │   ╠═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╣
// │ │ │     │ │                 │                                           ☺      
// │ │ ╰───╮ │ │ ╭─────╮ ╭─────╮ │     Name:Wedn.Net 公共层常用枚举      ♮ ♪ ♩
// │ │ ╭─╮ │ │ │ │ ╭─╮ │ │ ╭─╮ │ │                                    ♫ ♭      
// │ │ ╰─╯ │ │ │ │ ╰─╯ │ │ ╰─╯ │ │     Author:iceStone               ♬ ♪       
// │ └─────╯ └─╯ ╰─────╯ ╰───╮ │ │     Chinese:汪磊                              
// │                     ┌───╯ │ │                                              
// │                     ╰─────╯ │   ╠═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╬═╣
// ╰─────────────────────────────╯                                              
//------------------------------------------------------------------------------
namespace Wedn.Net.Common
{
    #region 站点状态
    /// <summary>
    /// 站点状态
    /// </summary>
    public enum SiteStatus
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 开放
        /// </summary>
        Open = 0,
        /// <summary>
        /// 关闭
        /// </summary>
        Close = 1,
    }
    #endregion

    #region 显示类型
    /// <summary>
    /// 文章显示类型
    /// </summary>
    public enum PostShowType
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 摘要
        /// </summary>
        Summary = 0,
        /// <summary>
        /// 完全
        /// </summary>
        Full = 1,
    }
    /// <summary>
    /// RSS显示类型
    /// </summary>
    public enum RssShowType
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 摘要
        /// </summary>
        Summary = 0,
        /// <summary>
        /// 完全
        /// </summary>
        Full = 1,
    }
    #endregion

    #region 页面类型
    /// <summary>
    /// 页面类型
    /// </summary>
    public enum PageType
    {
        /// <summary>
        /// 默认页
        /// </summary>
        Default = 0,
        /// <summary>
        /// 文章页
        /// </summary>
        Post = 1,
        /// <summary>
        /// 类别页
        /// </summary>
        Category = 2,
        /// <summary>
        /// 标签页
        /// </summary>
        Tag = 3,
        /// <summary>
        /// 归档页
        /// </summary>
        Archive = 4,
        /// <summary>
        /// 分页
        /// </summary>
        Page = 5
    }
    #endregion

    #region 发表物类型
    /// <summary>
    /// 发表物类型
    /// </summary>
    public enum PostType
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 文章
        /// </summary>
        Article = 0,
        /// <summary>
        /// 页面
        /// </summary>
        Page = 1,
        /// <summary>
        /// 媒体
        /// </summary>
        Media = 2,
    }
    #endregion

    #region 发表物状态
    /// <summary>
    /// 发表物状态
    /// </summary>
    public enum PostStatus
    {
        /// <summary>
        /// 回收站
        /// </summary>
        Recycle = -3,
        /// <summary>
        /// 自动草稿
        /// </summary>
        AutoDraft = -2,
        /// <summary>
        /// 草稿
        /// </summary>
        Draft = -1,
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 公开发布
        /// </summary>
        Pubilc = 0,
        /// <summary>
        /// 加密
        /// </summary>
        Encrypt = 1,
        /// <summary>
        /// 私有
        /// </summary>
        Private = 2,
        /// <summary>
        /// 继承的
        /// </summary>
        Inherit = 3,
    }
    #endregion

    #region 发表物评论状态
    /// <summary>
    /// 发表物评论状态
    /// </summary>
    public enum PostCommentStatus
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 所有人可评论
        /// </summary>
        Open = 0,
        /// <summary>
        /// 只有注册用户可评论
        /// </summary>
        JustRegistered = 1,
        /// <summary>
        /// 不允许评论
        /// </summary>
        Close = 2
    }
    #endregion

    #region 发表物Ping状态
    /// <summary>
    /// 发表物Ping状态
    /// </summary>
    public enum PostPingStatus
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 所有人Ping
        /// </summary>
        Open = 0,
        /// <summary>
        /// 只有注册用户可Ping
        /// </summary>
        JustRegistered = 1,
        /// <summary>
        /// 不允许Ping
        /// </summary>
        Close = 2
    }
    #endregion

    #region 用户状态
    /// <summary>
    /// 用户状态
    /// </summary>
    public enum UserStatus
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 0,
        /// <summary>
        /// 等待审核
        /// </summary>
        Awaiting = 1,
        /// <summary>
        /// 禁止的
        /// </summary>
        Ban = 2,
    }
    #endregion

    #region 评论状态
    /// <summary>
    /// 评论状态
    /// </summary>
    public enum CommentStatus
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 等待审核
        /// </summary>
        Awaiting = 0,
        /// <summary>
        /// 审核通过
        /// </summary>
        Approved = 1,
        /// <summary>
        /// 回收站
        /// </summary>
        Recycle = 2,
        /// <summary>
        /// 垃圾评论
        /// </summary>
        Spam = 3,
    }
    #endregion

    #region 链接类型
    /// <summary>
    /// 链接类型
    /// </summary>
    public enum LinkType
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 友情链接
        /// </summary>
        Blogroll = 0,
        /// <summary>
        /// 导航菜单
        /// </summary>
        Navigation = 1,
        /// <summary>
        /// 脚注链接
        /// </summary>
        Footer = 2
    }
    #endregion

    #region 标签类型
    /// <summary>
    /// 标签类型
    /// </summary>
    public enum TermType
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 文章Tag
        /// </summary>
        PostTag = 0,
        /// <summary>
        /// 文章类别
        /// </summary>
        PostCategory = 1
    }
    #endregion

    #region 用户角色权限
    /// <summary>
    /// 用户角色权限
    /// </summary>
    public enum UserRole
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = 0,
        /// <summary>
        /// 订阅者
        /// </summary>
        Subscriber = 0,
        /// <summary>
        /// 撰写人
        /// </summary>
        Writer = 1,
        /// <summary>
        /// 超级管理员
        /// </summary>
        Administrator = 2,
    }
    #endregion

    #region 关系对象类型
    /// <summary>
    /// 关系对象类型
    /// </summary>
    public enum RelationObjectType
    {
        /// <summary>
        /// 文章
        /// </summary>
        Post = 0,
        /// <summary>
        /// 用户
        /// </summary>
        User = 1,
        /// <summary>
        /// 链接
        /// </summary>
        Link = 2,
        /// <summary>
        /// 评论
        /// </summary>
        Comment = 3
    }
    #endregion

    #region 登录结果
    /// <summary>
    /// 登录结果
    /// </summary>
    public enum LoginResult
    {
        /// <summary>
        /// 用户名不存在
        /// </summary>
        NonExistent,
        /// <summary>
        /// 密码错误
        /// </summary>
        PasswordError,
        /// <summary>
        /// 要求用户输入验证码
        /// </summary>
        NeedValidateCode,
        /// <summary>
        /// 用户等待审核
        /// </summary>
        Awaiting,
        /// <summary>
        /// 登录成功
        /// </summary>
        Success
    }
    #endregion

    #region 错误等级
    /// <summary>
    /// 错误等级
    /// </summary>
    public enum ErrorLevel
    {
        /// <summary>
        /// 调试错误
        /// </summary>
        Debug,
        /// <summary>
        /// 一般错误
        /// </summary>
        Error,
        /// <summary>
        /// 致命错误
        /// </summary>
        Fatal,
        /// <summary>
        /// 消息级错误
        /// </summary>
        Info,
        /// <summary>
        /// 警告
        /// </summary>
        Warn,
    }
    #endregion
}
